<template>
  <el-tree-select v-model="id" :options="tree" :props="eltreeselectprops" nodeKey="id" placeholder="请选择" :filterable="true"></el-tree-select>
</template>

<script>
// 如果要使用全局注册，在main.js引入以下代码：
// import elTreeSelect from '@/components/elTreeSelect'
// Vue.component('elTreeSelect', elTreeSelect)
export default {
  data() {
    return {
      id: null,
      eltreeselectprops: {
        label: 'name'
      },
      tree: []
    }
  }
}
</script>

<style>

</style>
